package com.zrkj.entity.dto;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

@Getter
@Setter
@Accessors(chain = true)
@ToString
public class BaseDto {

    private Long current;

    private Long size;

    public Page getPage() {

        return new Page(null != this.getCurrent() ? this.getCurrent() : 1L, null != this.getSize() ? this.getSize() : 10L);
    }
}
